home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #14 / Monster Media No. 14 (April 1996) (Monster Media, Inc.).ISO / netmail / mplus400.zip / 400-TXT.ZIP / RBBSQWK.BAT < prev   
DOS Batch File  |  1996-01-26  |  2KB  |  44 lines

  1. :
  2. : RBBSQWK.BAT (Optional) - Called by Mail Manager +Plus+, to prepare QWK packet
  3. :                          for downloading.
  4. :
  5. : If you allow your users to choose archive methods (via MMGRx.ARL), Mail
  6. : Manager +Plus+ will have already created the .QWK by the time this batch
  7. : file is executed, and In fact you could speed up execution time by deleting
  8. : this file, eliminating an unneeded shell to it.
  9. :
  10. : If you have additional files that you would like to include in your users
  11. : QWK packets, you can modify this file to add them to the packet.
  12. :
  13. : %1 = base file name
  14. : %2 = archive method ZIP, ARJ, LZH, or ARC
  15. : %3 = node number (not used in this example).
  16. :
  17. : Last updated for distribution 01/22/96 - Makai Software
  18. :
  19. : Compress the .QWK packet if it doesn't already exist.
  20. : ---------------------------------------------------------------------------
  21.   if exist %1.qwk GOTO END
  22.   if (%2)==(ZIP) pkzip -m %1.qwk *.dat *.ndx ???log door.id news blt-*.*
  23.   if (%2)==(ARJ) arj m %1.qwk *.dat *.ndx ???log door.id news blt-*.*
  24.   if (%2)==(LZH) lha a -m %1.qwk *.dat *.ndx ???log door.id news blt-*.*
  25.   if (%2)==(ARC) GOTO ARC
  26.   GOTO END
  27.  
  28. :ARC
  29. : ---------------------------------------------------------------------------
  30. : The old PKARC archiver does not allow you to specify files on the command
  31. : line that don't physically exist.  So for this archive method, we'll do a
  32. : check against each individual component of the package prior to attempting
  33. : to archive it.  The "-oc" in the command line specifies "old compatibility",
  34. : the "Crunch" method.
  35. : ----------------------------------------------------------------------------
  36.   if exist *.dat   pkarc -oc m %1.qwk *.dat
  37.   if exist *.ndx   pkarc -oc m %1.qwk *.ndx
  38.   if exist ???log  pkarc -oc m %1.qwk ???log
  39.   if exist door.id pkarc -oc m %1.qwk door.id
  40.   if exist news    pkarc -oc m %1.qwk news
  41.   if exist blt-*.* pkarc -oc m %1.qwk blt-*.*
  42.  
  43. :END
  44.